 <div class="nav">
	<g:if test="${!session.usuario}">
		<span class="menuButton"> <g:link controller="usuario" action="login">Log in</g:link> </span>
	</g:if>
	<g:else>
		<g:set var="entityName" value="${message(code: 'paciente.label', default: 'Paciente')}" />
		<span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
	    <span class="menuButton"><g:link controller="paciente" class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
	    <span class="menuButton"><g:link controller="paciente" class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
		<span class="menuButton"> <g:link controller="tarefa" action="list" class="list">Lista de Tarefas</g:link></span>
		<g:if test="${session.usuario.admin}">
		<span class="menuButton"> <g:link controller="usuario" action="list" class="list"><g:message code="usuario.gerenciar.label" /></g:link> </span>
		</g:if>
		<span style=" text-align: right; float: right;">
		Usuário <b>${session.usuario.nome}</b> conectado. &nbsp;&nbsp;&nbsp;
		<span class="menuButton"> <g:link controller="usuario" action="logout">Sair</g:link> </span>
		</span>
	</g:else>
</div>


        
     